package com.woniuxy.goods.user.mapper;

import com.woniuxy.goods.module.user.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from t_user where username = #{name} and password=#{pass}")
    User selectUserByNameAndPass(@Param("name") String name, @Param("pass") String pass);

    @Select("select * from t_user where id = #{id}")
    User selectUserByKey(int id);
}
